package com.logic.lhub.util;

import java.text.DecimalFormat;

public class DoubleUtils {

    public static double formatDecimal(double value) {

        DecimalFormat decimalFormat = new DecimalFormat("#.00");

        String formatValue = decimalFormat.format(value);

        return Double.parseDouble(formatValue);
    }
}